<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="java.util.*" %>
<%@ page import="com.ionglobal.db.*" %>
<%@ page import="com.ionglobal.lib.*" %>
<%@ page import="com.ionglobal.misc.*" %>
<%@ include file="../init_include.jsp" %>

<%
	int check_rst=Permission.accept(dbi,session,request,"sysop","tree","catid","000001000"); 
	if (check_rst!=Permission.CHECK_RST_SUCCESS)
	{
		dbi.closeAll();
		if (check_rst==Permission.CHECK_RST_DENY)
			response.sendRedirect("../deny.html");
		else
			response.sendRedirect("../index.jsp");
		return;
	}	
	
	String iditem="";
	int userid=0;
	if(request.getParameter("userid")!=null)
		userid=Integer.parseInt(request.getParameter("userid"));
	
	if(request.getParameter("idtext")!=null) {
		iditem=request.getParameter("idtext");
		Class_User.deleteUserClass(dbi,userid,iditem);
		out.print(Language.getNameByCode("sys.class.delsysop","Delete user in class successfully!"));
	}
%>	
<script Language="JavaScript" src="../script/Ion_Show.js"></script> 
<script language="javascript">
	location.href="user_class_list.jsp?catid=<%=request.getParameter("catid")%>&id=<%=userid%>";
</script>	
<%@ include file="../init_free.jsp" %>
